# 未完成
# chatu

import sys
import os
import optparse

def http_simple_server(webdir='.',webport=80):
    print('webdir "%s",port %s'%(webdir,webport))
    os.chdir(webdir)
    srvadd=("",webport)
    srvobj = HTTPServer(srvaddr, CGIHTTPRequestHandler)
    srvobj.serve_forever()

if __name__=='__main__':
    dirpath=port
    http_simple_server(dirpath,int(port))
